<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>项目管理</title>
<%@ include file="/module/js.jsp"%>
<script type="text/javascript">
$(document)
.ready(
		function() {	
			//查询
			$('#btnQuery').click(function() {
				  document.semesterForm.action = "${basePath}/semesterSummary/recommendStudentSchoolReport";
				  document.semesterForm.submit();
			});
			//打印
			 $("#btnPrint").click(function(){
				 layer.confirm("您确定需要打印吗?", {icon: 3, title:'提示',skin:'layer-ext-moon'}, function(index){
						$("#print_RecommendStudentSchool").printArea();
				 },function(index){
						layer.close(index);
	              });
			});
			//导出
			$('#btnExport').on('click', function(){
				   layer.confirm("您确定要导出吗?", {icon: 3, title:'提示',skin:'layer-ext-moon'}, function(index){
					   var rows = $("#dg").datagrid("getRows");
					   var bodyData = JSON.stringify(rows);  //转成json字符串
					    $("#bodyData").val(JSON.stringify(rows));
							document.semesterForm.action = "${basePath}/semesterSummary/exportRecommendStudent";
							document.semesterForm.submit();
            		 });
				});
		});
</script>
<style>
.table-contentTD3 {
	color:#000;
	/*font-weight:bold;*/
	font-size: 13px;
	padding: 3px 6px 3px 6px;
	text-align: left;
	height: 30px;
	line-height: 24px;
	border: 1px #cccccc solid;
	word-break: break-all;
	white-space: normal;
	border:1px solid #333;

</style>


</head>
<body style="height: 100%">
	<form action="#" name="semesterForm" id="semesterForm" method="post">
		<input  type="hidden" id="bzr" name="bzr" value="${ismanager}"/>
		<table cellpadding="1" cellspacing="1" border="0">
			<tr>
				<td><input type="button" id="btnQuery" autocomplete="off"  value="查询"
					class="inputButton" /></td>
				<td><input type="button" id="btnPrint" autocomplete="off"  value="打印"
					class="inputButton" /></td>
<!-- 			<td><input type="button" id="btnExport" autocomplete="off"  value="导出" -->
<!-- 					 class="inputButton"/></td> -->
			</tr>
		</table>
		<table cellpadding="1" cellspacing="1">
			<tr>
				<td>学期：</td>
				<td>
				<select id="semid" name="semid" class="selectList">
				 <c:forEach items="${semesterList}" var="semester">
				 <option value="${semester.xqid}">${semester.xqmc}</option>
				 </c:forEach>
				</select>
			</td>
			</tr>
		</table>
	 <div id="print_RecommendStudentSchool" style="margin-top: 0px;">
	  <table cellpadding="0" cellspacing="0" border="0" class="table-border"
			width="80%">
	   <tr>
		<td class="table-header" colspan="6"><h1 style="font-size:18px;">杭州市交通职高${xqbean1.xqmc}<br/>${xqbean1.pxxm}&nbsp;&nbsp;&nbsp;&nbsp;合计：${xqbean1.xqCount}名</h1></td>
	   </tr>
<!-- 	   <br/> -->
	   <c:forEach items="${list1}" var="stu1">
	    <tr>
	     <td class="table-contentTD2"><h5 style="font-size:15px;">${stu1.njmc}级年级合计：${stu1.njCount}名</h5></td>
	    </tr>
	    <c:forEach items="${stu1.subList}" var="sub1">
	    <tr>
	     <td class="table-contentTD2" style="font-size:15px;">${sub1.bjmc}班：${sub1.bjCount}人<br/><span style="font-weight: normal;font-size: 15px;">${sub1.xm}</span></td>
	    </tr>    
	    </c:forEach>
	   </c:forEach>
<!-- 	   <br/> -->
	    <tr>
		<td class="table-header" colspan="6"><h3 style="font-size:18px;">杭州市交通职高${xqbean2.xqmc}<br/>${xqbean2.pxxm}&nbsp;&nbsp;&nbsp;&nbsp;合计：${xqbean2.xqCount}名</h3></td>
	   </tr>
<!-- 	   <br/> -->
	   <c:forEach items="${list2}" var="stu2">
	    <tr>
	     <td class="table-contentTD2"><h5 style="font-size:15px;">${stu2.njmc}级年级合计：${stu2.njCount}名</h5></td>
	    </tr>
	    <c:forEach items="${stu2.subList}" var="sub2">
	    <tr>
	     <td class="table-contentTD2" style="font-size:15px;">${sub2.bjmc}班：${sub2.bjCount}人<br/><span style="font-weight: normal;font-size: 15px;">${sub2.xm}</span><br/></td>
	    </tr>    
	    </c:forEach>
	   </c:forEach>
<!-- 	   <br/> -->
	    <tr>
		<td class="table-header" colspan="6"><h3 style="font-size:18px;">杭州市交通职高${xqbean3.xqmc}<br/>${xqbean3.pxxm}&nbsp;&nbsp;&nbsp;&nbsp;合计：${xqbean3.xqCount}名</h3></td>
	   </tr>
<!-- 	   <br/> -->
	   <c:forEach items="${list3}" var="stu3">
	    <tr>
	     <td class="table-contentTD2"><h5 style="font-size:15px;">${stu3.njmc}级年级合计：${stu3.njCount}名</h5></td>
	    </tr>
	    <c:forEach items="${stu3.subList}" var="sub3">
	    <tr>
	     <td class="table-contentTD2" style="font-size:15px;">${sub3.bjmc}班：${sub3.bjCount}人<br/><span style="font-weight: normal;font-size: 15px;">${sub3.xm}</span><br/></td>
	    </tr>    
	    </c:forEach>
	   </c:forEach>
<!-- 	   <br/> -->
	    <tr>
		<td class="table-header" colspan="6"><h3 style="font-size:18px;">杭州市交通职高${xqbean4.xqmc}<br/>${xqbean4.pxxm}&nbsp;&nbsp;&nbsp;&nbsp;合计：${xqbean4.xqCount}名</h3></td>
	   </tr>
<!-- 	   <br/> -->
	   <c:forEach items="${list4}" var="stu4">
	    <tr>
	     <td class="table-contentTD2"><h5 style="font-size:15px;">${stu4.njmc}级年级合计：${stu4.njCount}名</h5></td>
	    </tr>
	    <c:forEach items="${stu4.subList}" var="sub4">
	    <tr>
	     <td class="table-contentTD2" style="font-size:15px;">${sub4.bjmc}班：${sub4.bjCount}人<br/><span style="font-weight: normal;font-size: 15px;">${sub4.xm}</span><br/></td>
	    </tr>    
	    </c:forEach>
	   </c:forEach>
<!-- 	   <br/> -->
	    <tr>
		<td class="table-header" colspan="6"><h3 style="font-size:18px;">杭州市交通职高${xqbean5.xqmc}<br/>${xqbean5.pxxm}&nbsp;&nbsp;&nbsp;&nbsp;合计：${xqbean5.xqCount}名</h3></td>
	   </tr>
<!-- 	   <br/> -->
	   <c:forEach items="${list5}" var="stu5">
	    <tr>
	     <td class="table-contentTD2"><h5 style="font-size:15px;">${stu5.njmc}级年级合计：${stu5.njCount}名</h5></td>
	    </tr>
	    <c:forEach items="${stu5.subList}" var="sub5">
	    <tr>
	     <td class="table-contentTD2" style="font-size:15px;">${sub5.bjmc}班：${sub5.bjCount}人<br/><span style="font-weight: normal;font-size: 15px;">${sub5.xm}</span><br/></td>
	    </tr>    
	    </c:forEach>
	   </c:forEach>
	</table>
	 
	 </div>
		<script type="text/javascript">
			 if("${msg}"!=""){
			       layer.alert("${msg}", {icon: 6});
			  } 
			 compareListValue(document.getElementById('semid'),'${semid}');
			 
		</script>
	</form>
</body>
</html>
